.clearfix::after {
  display: table;
  clear: both;
  content: '';
}

.right {
  float: right;

  // Add left margin for ant elements
  > .ant-select,
  > .ant-input,
  > .ant-btn,
  > .bui-link-btn {
    margin-left: $view-controller-gutter;
  }
}

.left {
  float: left;

  // Add right margin for ant elements
  > .ant-select,
  > .ant-input,
  > .ant-btn,
  > .bui-link-btn {
    margin-right: $view-controller-gutter;
  }
}

// grids
.grid-half {
  float: left;
  width: 50%;
}

// vertical center chlid inline and inline-block elements
.vertical-center::before {
  display: inline-block;
  height: 100%;
  content: '';
  vertical-align: middle;
}



/*容器*/
.flex-col,.flex-row {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

.flex-col {
	-webkit-box-orient: horizontal;
	-webkit-flex-flow: row;
	flex-flow: row;
}

.flex-row {
	-webkit-box-orient: vertical;
	-webkit-flex-flow: column;
	flex-flow: column;
}

.flex-col:before,.flex-row:before,.flex-col:after,.flex-row:after {
	content: " ";
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	box-sizing: border-box;
}

.flex-col:after,.flex-row:after {
	clear: both;
}

.flex-col {
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-webkit-flex-direction: row;
	-ms-flex-direction: row;
	flex-direction: row;
}

.flex-row {
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	-ms-flex-direction: column;
	flex-direction: column;
}
.flex-grow-1{
	flex-grow:1;
}
.flex-grow-2{
	flex-grow:2;
}
.flex-grow-3{
	flex-grow:3;
}
.flex-grow-4{
	flex-grow:4;
}
.overflow-hidden{
	overflow: hidden;
}
.overflow-auto{
	overflow: auto;
}
.overflow-scroll{
	overflow: scroll;
}

/*栅格*/
.flex-item-1 {
	float: left;
	width: 8.33333333%;
}

.flex-offset-1 {
	margin-left: 8.33333333%;
}

.flex-item-2 {
	float: left;
	width: 16.66666667%;
}

.flex-offset-2 {
	margin-left: 16.66666667%;
}

.flex-item-3 {
	float: left;
	width: 25%;
}

.flex-offset-3 {
	margin-left: 25%;
}

.flex-item-4 {
	float: left;
	width: 33.33333333%;
}

.flex-offset-4 {
	margin-left: 33.33333333%;
}

.flex-item-5 {
	float: left;
	width: 41.66666667%;
}

.flex-offset-5 {
	margin-left: 41.66666667%;
}

.flex-item-6 {
	float: left;
	width: 50%;
}

.flex-offset-6 {
	margin-left: 50%;
}

.flex-item-7 {
	float: left;
	width: 58.33333333%;
}

.flex-offset-7 {
	margin-left: 58.33333333%;
}

.flex-item-8 {
	float: left;
	width: 66.66666667%;
}

.flex-offset-8 {
	margin-left: 66.66666667%;
}

.flex-item-9 {
	float: left;
	width: 75%;
}

.flex-offset-9 {
	margin-left: 75%;
}

.flex-item-10 {
	float: left;
	width: 83.33333333%;
}

.flex-offset-10 {
	margin-left: 83.33333333%;
}

.flex-order-10 {
	-webkit-box-ordinal-group: 11;
	-webkit-order: 10;
	order: 10;
}

.flex-item-11 {
	float: left;
	width: 91.66666667%;
}

.flex-offset-11 {
	margin-left: 91.66666667%;
}

.flex-item-12 {
	float: left;
	width: 100%;
}

.flex-offset-12 {
	margin-left: 100%;
}

.flex-auto {
	float: left;
	-webkit-box-flex: 1;
	-webkit-flex-grow: 1;
	flex-grow: 1;
}

.flex-between {
	-webkit-box-pack: justify;
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
}
/*对齐*/
.flex-col.flex-left {
	-webkit-box-pack: start;
	-webkit-justify-content: flex-start;
	-ms-flex-pack: start;
	justify-content: flex-start;
}

.flex-col.flex-right {
	-webkit-box-pack: end;
	-webkit-justify-content: flex-end;
	-ms-flex-pack: end;
	justify-content: flex-end;
}

.flex-col.flex-top {
	-webkit-box-align: start;
	-webkit-align-items: flex-start;
	-ms-flex-align: start;
	align-items: flex-start;
}

.flex-col.flex-bottom {
	-webkit-box-align: end;
	-webkit-align-items: flex-end;
	-ms-flex-align: end;
	align-items: flex-end;
}

.flex-col.flex-center {
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.flex-col.flex-middle {
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
}

.flex-row.flex-left {
	-webkit-box-align: start;
	-webkit-align-items: flex-start;
	-ms-flex-align: start;
	align-items: flex-start;
}

.flex-row.flex-right {
	-webkit-box-align: end;
	-webkit-align-items: flex-end;
	-ms-flex-align: end;
	align-items: flex-end;
}

.flex-row.flex-top {
	-webkit-box-pack: start;
	-webkit-justify-content: flex-start;
	-ms-flex-align: start;
	justify-content: flex-start;
}

.flex-row.flex-bottom {
	-webkit-box-pack: end;
	-webkit-justify-content: flex-end;
	-ms-flex-align: end;
	justify-content: flex-end;
}

.flex-row.flex-center {
	-webkit-box-align: center;
	-webkit-align-items: center;
	align-items: center;
}

.flex-row.flex-middle {
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
}

[class*=flex-item-] {
	position: relative;
}

[class*=flex-auto].flex-left {
	margin-right: auto;
}

[class*=flex-auto].flex-right {
	margin-left: auto;
}

[class*=flex-auto].flex-top {
	margin-bottom: auto;
}

[class*=flex-auto].flex-bottom {
	margin-top: auto;
}

[class*=flex-auto].flex-center {
	margin-left: auto;
	margin-right: auto;
}

[class*=flex-auto].flex-middle {
	margin-top: auto;
	margin-bottom: auto;
}

/*自动隐藏文字*/
.ellipsis-1 {
	/* padding-right: 15px; */
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ellipsis-2 {
	display: -webkit-box;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
	white-space: normal !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/*边框样式*/
.border-t,.border-b,.border-l,.border-r,.border-tb,.border {
	position: relative;
}

.border-t:after,.border-b:after,.border-l:after,.border-r:after,.border-tb:after,.border:after {
	display: block;
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	-webkit-transform-origin: 0 0;
	-webkit-transform: scale(1);
	pointer-events: none;
}

.border-l:after {
	border-left: 1px solid #DFDFDF;
}

.border-r:after {
	border-right: 1px solid #DFDFDF;
}

.border-t:after {
	border-top: 1px solid #DFDFDF;
}

.border-b:after {
	border-bottom: 1px solid #DFDFDF;
}

.border-tb:after {
	border-top: 1px solid #DFDFDF;
	border-bottom: 1px solid #DFDFDF;
}

.border:after {
	border: 1px solid #DFDFDF;
}

.border.border-radius:after {
	border-radius: 6px;
}

@media screen and (-webkit-min-device-pixel-ratio:1.5) {
	.border-t:after,.border-b:after,.border-l:after,.border-r:after,.border-tb:after,.border:after {
		right: -100%;
		bottom: -100%;
		-webkit-transform: scale(0.5);
	}
}

.break-no{
	white-space:nowrap;
}
.break-auto{
	word-wrap: break-word; word-break: normal; 
}
.break-all{
	word-break:break-all;
}
.relative{
	position: relative;
}
.absolute{
	position: absolute;
}
